<!DOCTYPE html>
<html>
    <head>
        <script src="../vue.global.js"></script>
    </head>
    <body>
        <div id="app">
            <button @click="count++">{{ count }}</button>
        </div>
        <script>
            const {createApp , ref} = Vue;

            const app=createApp({
                setup(){
                    const count = ref(0);
                    function increment(){
                        count.value++;
                    };
                    return {count , increment};
                }
            });
            app.mount('#app')
        </script>
    </body>
</html>